<template>
	<view v-if="info && JSON.stringify(info) != '{}'" class="activateMembership">
		<view class="infoPrev">
			<view class="line dif">
				<view class="left">
					订单编号
					<text>{{info.orderNo}}</text>
				</view>
				<view class="right">
					<view class="">
						{{info.orderTypeName}}
					</view>
				</view>
			</view>
			<view class="line">
				<view class="left">
					订单内容
				</view>
				<view class="right" >
					{{info.orderContent}}
				</view>
			</view>
			<view class="line">
				<view class="left">
					会员名称
					
				</view>
				<view class="right" >
					{{info.buyerName}}
				</view>
			</view>
			<view class="line">
				<view class="left">
					会员ID
				</view>
				<view class="right" >
					{{info.buyerNo}}
				</view>
			</view>
			<view class="line">
				<view class="left">
					会员手机
				</view>
				<view class="right" >
					{{info.buyerMobile}}
				</view>
			</view>
			<!-- <view class="line">
				<view class="left">
					VIP类型
				</view>
				<view class="right vip" >
					{{info.orderContent}}
				</view>
			</view> -->
			<view class="lines">
				
			</view>
			<view class="line red">
				<view class="left">
					订单总金额
				</view>
				<view class="right" >
					￥{{info.totalAmount}}
				</view>
			</view>
			<view class="line red">
				<view class="left">
					抵扣金额
				</view>
				<view class="right" >
					￥{{info.discountAmount}}
				</view>
			</view>
			<view class="line red">
				<view class="left">
					支付金额
				</view>
				<view class="right" style="font-weight: 500;">
					
					￥{{info.totalPaidAmount}}
				</view>
			</view>
			<view class="lines">
				
			</view>
			<view v-if="info.genTime" class="line">
				<view class="left">
					下单时间
				</view>
				<view class="right" >
					{{info.genTime}}
				</view>
			</view>
			<view v-if="info.miniUserCode" class="line">
				<view class="left">
					红娘编号
				</view>
				<view class="right" >
					{{info.miniUserCode}}
				</view>
			</view>
			<view v-if="info.miniUserName" class="line">
				<view class="left">
					红娘名称
				</view>
				<view class="right" >
					{{info.miniUserName}}
				</view>
			</view>
			<view v-if="info.miniUserMobile" class="line">
				<view class="left">
					红娘手机
				</view>
				<view class="right" >
					{{info.miniUserMobile}}
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				id: 0,
				info: null,
			}
		},
		onLoad(e) {
			this.getDetail(e.id) //获取会员列表
		},
		methods: {
			
			
			getDetail(id) {
				this.$u.api
					.orderDetail({
						orderNo:id
					})
					.then((res) => {
						console.log(res, 77777);
						this.info = res.data
					});
			}

		}
	}
</script>
<style>
	page {
		background: #F6F6F6;
		/* padding: 24rpx 40rpx; */
	}
</style>

<style scoped lang="scss">
	.activateMembership { 
		margin: 24rpx 40rpx;
		padding: 28rpx 32rpx 16rpx;
		background: #FFFFFF;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
		.lines{
			border-bottom: 2rpx solid #F5F5F5;
			margin-bottom: 16rpx;
		}

		.infoPrev {
			

			.line {
				width: 100%;
				margin-bottom: 16rpx;
				display: flex;
				align-items: center;
			justify-content: space-between;

				.left {
					font-family: Alibaba PuHuiTi, Alibaba PuHuiTi;
					font-weight: 400;
					font-size: 28rpx;
					color: #0F1417;
					line-height: 40rpx;
				}
				.right {
					font-family: Alibaba PuHuiTi, Alibaba PuHuiTi;
					font-weight: 400;
					font-size: 28rpx;
					color: rgba(15,20,23,0.6);
					line-height: 40rpx;
					&.vip{
						font-family: Alibaba PuHuiTi, Alibaba PuHuiTi;
						font-weight: 500;
						font-size: 28rpx;
						color: #0F1417;
					}
				}
				&.red{
					.right {
						font-family: Alibaba PuHuiTi, Alibaba PuHuiTi;
						font-weight: 400;
						font-size: 28rpx;
						color: #FA4A53;
						line-height: 40rpx;
					}
				}
				&.dif{
					.left{
						font-family: Alibaba PuHuiTi, Alibaba PuHuiTi;
						font-weight: 500;
						font-size: 28rpx;
						color: #0F1417;
						line-height: 33rpx;
						text{
							font-family: Alibaba PuHuiTi, Alibaba PuHuiTi;
							font-weight: 400;
							font-size: 24rpx;
							color: #0F1417;
							line-height: 28rpx;
							padding-left: 8rpx;
						}
					}
					.right {
						>view{
							font-family: Alibaba PuHuiTi, Alibaba PuHuiTi;
							font-weight: 400;
							font-size: 20rpx;
							color: #FFFFFF;
							line-height: 20rpx;
							padding: 4rpx 10rpx;
							background: #FA4A53;
							border-radius: 14rpx 14rpx 14rpx 14rpx; 
						}
					}
					
				}
			}
		}
	}
</style>
